package com.kefan.reptilemanagement.controller;


import com.kefan.reptilemanagement.common.entities.ResultBody;
import com.kefan.reptilemanagement.common.entities.SysUserRole;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sjj
 * @since 2021-10-17
 */
@RestController
@RequestMapping("/sys-user-role")
public class SysUserRoleController extends BaseController {

    @PostMapping("/add")
    public ResultBody add(@RequestBody SysUserRole sysUserRole)
    {
        return ResultBody.success(sysUserRoleService.add(sysUserRole));
    }
}
